home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3c / getrpcpor.z / getrpcpor
Text File  |  1998-10-20  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. GGGGEEEETTTTRRRRPPPPCCCCPPPPOOOORRRRTTTT((((3333RRRR))))                                                  GGGGEEEETTTTRRRRPPPPCCCCPPPPOOOORRRRTTTT((((3333RRRR))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      getrpcport - get RPC port number
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      iiiinnnntttt ggggeeeettttrrrrppppccccppppoooorrrrtttt((((hhhhoooosssstttt,,,, pppprrrrooooggggnnnnuuuummmm,,,, vvvveeeerrrrssssnnnnuuuummmm,,,, pppprrrroooottttoooo))))
  13.           cccchhhhaaaarrrr ****hhhhoooosssstttt;;;;
  14.           iiiinnnntttt pppprrrrooooggggnnnnuuuummmm,,,, vvvveeeerrrrssssnnnnuuuummmm,,,, pppprrrroooottttoooo;;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _G_e_t_r_p_c_p_o_r_t returns the port number for version _v_e_r_s_n_u_m of the RPC program
  18.      _p_r_o_g_n_u_m running on _h_o_s_t and using protocol _p_r_o_t_o.  It returns 0 if it
  19.      cannot contact the portmapper, or if _p_r_o_g_n_u_m is not registered.  If
  20.      _p_r_o_g_n_u_m is registered but not with version _v_e_r_s_n_u_m, it will still return
  21.      a port number (for some version of the program) indicating that the
  22.      program is indeed registered.  The version mismatch will be detected upon
  23.      the first call to the service.
  24.  
  25. NNNNOOOOTTTTEEEE
  26.      To compile and link a program that calls this routine, follow the
  27.      procedures for section (3R) routines as described in intro (3).
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.